package com.common.mybatis.plugins.pagination.dialect;

/**
 * <p>
 * Postgre 数据库分页语句组装实现
 * </p>
 */
public class PostgreDialect implements PageDialect {

  public String buildPaginationSql(String originalSql, int offset, int limit) {
    StringBuffer sql = new StringBuffer(originalSql);
    sql.append(" limit ").append(limit).append(" offset ").append(offset);
    return sql.toString();
  }

}
